# $Id$
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-fresh-i18n

pkgver=5.4.1
pkgrel=1
_rcver=${pkgver}.2
#_oodlver=${pkgver}.0.beta1
_oodlver=${pkgver}

arch=('any')
url="http://www.documentfoundation.org"
license=('LGPL')

#https://download.documentfoundation.org/mirrors/all.html
_url="https://download.documentfoundation.org/libreoffice/stable"
#_url="https://download.documentfoundation.org/libreoffice/testing"
#_url="https://dev-builds.libreoffice.org/pre-releases"
#_url="https://www.libreoffice.org/download/pre-releases"

#_url+="/${pkgver}-rc2/rpm/x86"
_url+="/${pkgver}/rpm/x86"
#_url+="/rpm/x86"

_languages=(
  'af            "Afrikaans"'
  'am            "Amharic"'
  'ar            "Arabic"'
  'as            "Assamese (India)"'
  'ast           "Asturianu"'
  'be            "Belarusian"'
  'bg            "Bulgarian"'
  'bn            "Bengali"'
  'bn-IN         "Bengali (India)"'
  'bo            "Tibetan"'
  'br            "Breton"'
  'brx           "Bodo"'
  'bs            "Bosnian"'
  'ca            "Catalan"'
  'ca-valencia   "Catalan (Valencia)"'
  'cs            "Czech"'
  'cy            "Welsh"'
  'da            "Danish"'
  'de            "German"'
  'dgo           "Dogri"'
  'dz            "Dzongkha"'
  'el            "Greek"'
  'en-GB         "English (GB)"'
  'en-ZA         "English (ZA)"'
  'eo            "Esperanto"'
  'es            "Spanish"'
  'et            "Estonian"'
  'eu            "Basque"'
  'fa            "Persian"'
  'fi            "Finnish"'
  'fr            "French"'
  'ga            "Irish"'
  'gd            "Gaelic (Scottish)"'
  'gl            "Galician"'
  'gu            "Gujarati"'
  'he            "Hebrew"'
  'hi            "Hindi"'
  'hr            "Croatian"'
  'hu            "Hungarian"'
  'id            "Indonesian"'
  'is            "Icelandic"'
  'it            "Italian"'
  'ja            "Japanese"'
  'ka            "Georgian"'
  'kk            "Kazakh"'
  'km            "Khmer (Cambodia)"'
  'kmr-Latn      "Kurdish"'
  'kn            "Kannada"'
  'ko            "Korean"'
  'kok           "Konkani"'
  'ks            "Kashmiri"'
  'lb            "Luxembourgish"'
  'lo            "Lao"'
  'lt            "Lithuanian"'
  'lv            "Latvian"'
  'mai           "Maithili"'
  'mk            "Macedonian"'
  'ml            "Malayalam"'
  'mn            "Mongolian"'
  'mni           "Manipuri"'
  'mr            "Marathi"'
  'my            "Burmese"'
  'nb            "Norwegian Bokmal"'
  'ne            "Nepali"'
  'nl            "Dutch"'
  'nn            "Norwegian Nynorsk"'
  'nr            "Ndebele (South)"'
  'nso           "Northern Sotho"'
  'oc            "Occitan"'
  'om            "Oromo"'
  'or            "Oriya"'
  'pa-IN         "Punjabi (India)"'
  'pl            "Polish"'
  'pt            "Portuguese"'
  'pt-BR         "Portuguese (Brasil)"'
  'ro            "Romanian"'
  'ru            "Russian"'
  'rw            "Kinyarwanda"'
  'sa-IN         "Sanskrit (India)"'
  'sat           "Santali"'
  'sd            "Sindhi"'
  'si            "Singhalese"'
  'sid           "Sidama"'
  'sk            "Slovak"'
  'sl            "Slovenian"'
  'sq            "Albanien"'
  'sr            "Serbian"'
  'sr-Latn       "Serbian (Latin)"'
  'ss            "Swati"'
  'st            "Southern Sotho"'
  'sv            "Swedish"'
  'sw-TZ         "Swahili (Tanzania)"'
  'ta            "Tamil"'
  'te            "Telugu"'
  'tg            "Tajik"'
  'th            "Thai"'
  'tn            "Tswana"'
  'tr            "Turkish"'
  'ts            "Tsonga"'
  'tt            "Tatar"'
  'ug            "Uighur"'
  'uk            "Ukrainian"'
  'uz            "Uzbek"'
  've            "Venda"'
  'vi            "Vietnamese"'
  'xh            "Xhosa"'
  'zh-CN         "Chinese (simplified)"'
  'zh-TW         "Chinese (traditional)"'
  'zu            "Zulu"'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('e72c90af15aafe927b8de4f0e8f210859b9a0ccd8666c5dfbfbca28b59563584'
            'SKIP'
            '8663e37a357b0e1f4c2091b2d476eb0f2b2282417c369a3c5bc7a8611b630342'
            'SKIP'
            'b765f1c51be59b2119d16407ef61e75eee66e0c5eb8ccf649364d4e8db3e85a0'
            'SKIP'
            '0de2726891c037b85f0169f475a049c050d94abfcd4fe5c947917793b34c7ea4'
            'SKIP'
            '1745ba8ad9295200b1e5c3923c3d75386ae298b406be1997d922327214a3947c'
            'SKIP'
            '780c0dc396debdb68f0378bca6d773e100afc272526ae0b0b3e44691779d603b'
            'SKIP'
            'b06e6ee714d881ca69ae55a9d984752048015bcc12165a35fc0ff02d945e2a6c'
            'SKIP'
            '1053d448632d4940e3131089b18bb748eb1631cb54fbf259b203cb915c09bb9a'
            'SKIP'
            'a9c17747eb5aee80e7b5348beed5a2c4253887320e47873da68410a967ff852c'
            'SKIP'
            'bcc86a07fd3cc9720bcbd2f6782155fe6f62172ae2979189a9491e3b54c34286'
            'SKIP'
            '5f0c1469d3bcc1831e5ded29aeb95575db63b3590ca6b9a0aaf55c83e5105648'
            'SKIP'
            'c39ec4df68bec39f3b15b62bcaf599feea163ffe798c37ba605a4722ed10190b'
            'SKIP'
            '285badff5312436238d19d234d4e6b98db43100107d9df7451f0abbca20a47ed'
            'SKIP'
            '53eccef8b65c9a2604838554e9b0077fbe741f77cf33fa15b797c3db74b985a5'
            'SKIP'
            'ec4b3a169add2ef82f94aa5a65b62d0c5a975bbf1fe9661a70f44cd83f9499de'
            'SKIP'
            'dff1182b35a0238784a78303052c04ef7583baf598f40fb9cb5cda076badde56'
            'SKIP'
            '0079317726fad0f65dc915d2182be3bec96c19c6fd4b3be9a5b0db99d28801c3'
            'SKIP'
            '66bca1e76990f23781cfdf27e678412e2ead9a84e959aee38091c52e91734aa8'
            'SKIP'
            '0b808e31a9625a613d576e693cecc33c0ab4e20647edaca457ba9f48a5a37f64'
            'SKIP'
            'd04390661d41115a3602db9fae6429795bfd462516f5e953c25258b1c26a3a60'
            'SKIP'
            'd717edf259134e89e1a7147b8c78e388f0dca998247b0bd857430a550ccd9d67'
            'SKIP'
            'c32a70ccb4b68379fbf3023931e6676489e050f0538c7a2667ee35845c018dd4'
            'SKIP'
            '64030e9967d998d0d9c4ca7d6fafd88cf7c77ef980fb91364aae8c42f75a02c7'
            'SKIP'
            '1fc1ee03baec65daa8a8ea1e833729737dcd84745c8de772296a1b95fe34e57c'
            'SKIP'
            '64f3df320302190c33e1b5f80c38638e24fcc519292e151bda09bd218453e90b'
            'SKIP'
            '2f06893340138f304107c8b0d835b2a271e96a605b5cdfab48af38ea0b85eee5'
            'SKIP'
            '2ae60381c78273fb5f5c4dc014b0e08dc94807507c524dbffd9b56b42314a2c2'
            'SKIP'
            'be65b5a4cdd889ea1234c1dfed5ac82390f0b74c0bb4c845f54ce76b6d475662'
            'SKIP'
            '86b971a1a18edafc890c18b9be059d8443f0875aaa0af850094645ddbccd528e'
            'SKIP'
            '2e7d0636b1091cf81de2a916d55ffd4cdfb89fb3b176535bd0efed6070dae991'
            'SKIP'
            '613661c1551c968ecdd8246bfa506fed60a8ac754db37ca7660cd8c13b416b90'
            'SKIP'
            'c245ff09b77f4ae3937e3f753ebae4a3b51e5db5bd86f3ad94e75dc099334439'
            'SKIP'
            'fa7e0df9a0ab1abeeb706b1506548ee76c33b2ab10a0f4300015f449c9206214'
            'SKIP'
            '02371d4985ab973bd09c8da4d4fa9d2fd382a8ad8fda523fc0489f8105cb84bb'
            'SKIP'
            '031d70795f41661e6a32f745df0485c51e3262fadc47e42adf0b114aa50fc320'
            'SKIP'
            'c410803eee47f7c8908dd07cf183d177e224fe4df183832b39722f7c271c7f1d'
            'SKIP'
            'f5e44c75d6098377802d4c29d5f9ac0d53532f6e6282b9feee1f799c46f69282'
            'SKIP'
            '214b2e7d79015ec34d898460c8dd9a27f3d64e8540f087eae12b1fd18326d93d'
            'SKIP'
            '101ea44ef9c44027a01041b4567ba0d3e1ca034be21e07a0d54ef52a5a29e61f'
            'SKIP'
            '89c908f41c1f774e329eabcd24fd84cdb7447a6ef95c733793ed946b9485a70e'
            'SKIP'
            '0e22089eabd7467625c4101af5f98cf504b2fc1f9e9259e64d561d20e35dd9c8'
            'SKIP'
            '102c8e58d457a553220d851015c3c9ae9452aac221ac084cf98a01d1899bee83'
            'SKIP'
            '4ba906ffdb56aec7cc9c0a6ac1a04ae1f6be70229d5cd777c2e06f990403441e'
            'SKIP'
            '6a8734718cf38d0b8c05d554255a1273fcb73d0344dbdf855ef54cbacd3e567e'
            'SKIP'
            '256af4d0ad2a09af7e1b8bdb000d2d7b12958376d00b0c5a2ecccccedb2f27f0'
            'SKIP'
            '96a54f3a6be02e6c9c93e48c82a03a97ca16cf207e60f8b82c0bcf878eb81b22'
            'SKIP'
            '31f4495c94a5611a3071301f842dda18f81a09cc463ebf21f696018e92b833c8'
            'SKIP'
            '3c75823a97c6c6c92833bdde6cf7268541129f15783f3c037ade85ea0609c784'
            'SKIP'
            '4d677c4b910e051097a75f1d3a124b3735c2045f81ee317fe4a02cdeae3eefed'
            'SKIP'
            '716af0f23001e0243da5e691c013dbfb1fa691c9cf5d56074c82e279b12f4e13'
            'SKIP'
            'd7d0530fab207669dd0f5ccdcf4ae91fe2b548e6c3972b158ee63768c913e214'
            'SKIP'
            'fb317b7a3f87217e4ed6dfc5c8c22f1763215216243aa54e6a33359017985d55'
            'SKIP'
            '0e2a7a0816ba201fc015be832067a9dc18917b2ead2b47e6b62acc563b4d077d'
            'SKIP'
            '8f581076e21df368792bdd5e8f18990640476b168a3a1f1841efa2ccd5000e9f'
            'SKIP'
            'e1ff5f6c1a4dc88d1928fa88f438f87982d34799cf991a46aa49d590f389b4b0'
            'SKIP'
            'f0b497ee1862dd7357e4bb63aec30dac2e542dc9e86e51747859a2017263ca59'
            'SKIP'
            'b954c98f230ee1f6ebd1bb984b118a6dc4a7757eaa9b6ccfa461bdbe767ea422'
            'SKIP'
            '185f402071ee3c6f8f656261b733f67c7eae1bb84e927e301e0927a5af2284f8'
            'SKIP'
            '05f47acdcfabc4a8f1177c7239e6e8fd60b8250bc259a35f591e24f7492cfc50'
            'SKIP'
            '2d19b7f7586340fb8aa19e8a1904e38220468cf0d4ba16b0ebe4a9a725572f29'
            'SKIP'
            'dd73cf85c757030db567f6f401cc627f8a74a3180e982ad04a9b481d920c2c24'
            'SKIP'
            'c7dfc5b537b75c6f65e121e02950b64f987bdc79184be83a569ecc93dbae8f21'
            'SKIP'
            'f212bb3acefd6ba0730e1a04e4d4b5680eaa63d885920d05a6eb86bd2f1cddf9'
            'SKIP'
            '9dff8d88a175f99dfb6352a740303a501c9f14e9aabc2057caf528092956b954'
            'SKIP'
            '12a540d6d905a97fd7e303d85d93a8ddf58c211b176036482acb67ea2f30cca7'
            'SKIP'
            'afb987ebb2cba5ac2c589acf9b0fa2badf143bc19e051411f7992b2caefaa604'
            'SKIP'
            '4ec97acbf73cbc4bb08e9270ddd3262ad55033cdea6fb558ec16ac75da554c4d'
            'SKIP'
            'd802b0417a52ae56ce3e96b738ebf3e440d731a666e4224e5b67484c96268036'
            'SKIP'
            '632741c247b874a5a7d3a2f5f510d928faed71695d3f89d3c326bd6f12455dbd'
            'SKIP'
            'd97b67621c1e4151df72944885549555d16f0d3e66110083520c4dab57abb402'
            'SKIP'
            '56a436fb1c4ca0fd2a981d18d551fa47d310bd517ccdedaf28c627ee33cca1fc'
            'SKIP'
            'c47d21f71c11e617b4e112b54cd96e0d96157d8679ff052b8ef3ffae6874a3cc'
            'SKIP'
            'f4470e8c2e35b8388f3990eaf82c5e9b8262a2283b8ad25d6d36994321716542'
            'SKIP'
            '727dd64f259fcded686872d5a08e578ebe464e0a6eb63e2cfc05d19d7aac7d88'
            'SKIP'
            '2829a5c75229bab523de74968cef85e5fbc89b5093c19b4483b6e58f6da49237'
            'SKIP'
            'f6fb8a6a0ffc3754af3ca05428aa7441e3793c36adf2e110803475896ba4bfc7'
            'SKIP'
            '465caa2d4aada2298ff0fa00263412c9960423f2a3194077ab2abc442b0ae6de'
            'SKIP'
            '0a7434b09dfbee08ad9b6156c03481648da8583c2732fb2c0a249c5c30611190'
            'SKIP'
            '9754498558c4ad02e5c6871e1033f17226e2c99ae74533b3c66308cf0b6af567'
            'SKIP'
            'ac9a40d156d0cf9306beadbb9db596ca549c97cc409a6c0097182f6598b96ed1'
            'SKIP'
            'de402bbf3a45cfb7f1dfd5d59853e36e8e0e6df664f7fb7a6b0b202b4a1dda41'
            'SKIP'
            'ddc783bfe1f24d12dfb791bd9ec16ca16872208a4ea9130f029d821eeed3cce4'
            'SKIP'
            '4823e31bc243f9b9dd2ac1d686a2494359f123c0ad2e681787091685801babb4'
            'SKIP'
            '1068b85cff80f2c0430d6064ccf6b04a4845af106a849f4fb86f2a9e40bd41af'
            'SKIP'
            '627bbd6a404671a4c168e051de9e0cac7f9eac486995bdc7c32df9d0585b5050'
            'SKIP'
            '3b9b505832604ae6b4b214cf81bc67dd35e1607b34c3ed8dc9ce51e9d1dc8653'
            'SKIP'
            '8758fa005876dec2a4da73b6678bd8ffb589bc40ac4e2efd67f4ba10782bfba9'
            'SKIP'
            '1112188e348c138e304f8f53e576cb7efeaa1c0660668e9049d464d57203a48c'
            'SKIP'
            '6b21b8c1d30fd12db078f8a8a6874aea2d49d341cca79587cff8d46a4d7bab95'
            'SKIP'
            '23d11d6ca0b7f845d2ece7c231b33a767b596200bf13184728f962a0dcde0393'
            'SKIP'
            '088ef7ea5d359e61a115f0b4f1353ac6f1ebb3a4a18a3f82d6d420602d2b8d73'
            'SKIP'
            'c73d03dbea0e2ac25cba55256115adfc8c2d527d2a9264123c45a70928a7ffc7'
            'SKIP'
            'fc62807032e538763e8157af3206234e184c475300282a17199eddad26df3f24'
            'SKIP'
            '7c454251727ccc6bf054b5a1b86a0afb91f096ce78a9a269c86bb879dbb27b4e'
            'SKIP'
            '5114221066dd7bafed912c1acde7f3c5fa773969078282a7a73e09f11bf12ee0'
            'SKIP'
            'c2b83877a38d9064682efe3e62c5dcffd07cac622fc3b7e24a14a24b0132f36a'
            'SKIP'
            '36532df234d5dee364a803a240b6cdce5896b1e5465f1363fc5be3cc3f541d15'
            'SKIP'
            '8798ca7719f2f72d0508499424f36d5e63115664981cedd474199b14aecd2596'
            'SKIP'
            '169b7cddd9b33fbf7bfc9560ddd92290f3809b636a60aac509c832c698d2dbae'
            'SKIP'
            'abb88bbf52d1d42071da211645e2aa3d9e46434f603ce805a7c2d6952435a12b'
            'SKIP'
            'ae1f9428c0ab0a1747720e56388fe22b808c9009761ac0ecf219c023df53efd2'
            'SKIP'
            '14c8dedd89705110f32f2c1eed9280a197b2c5f6a73b3615a2cbe27149a168ca'
            'SKIP'
            '657bab3ed62f154b4bb9094d76a3ea6d32b0265c6e7ad2fb12789cb934794d75'
            'SKIP'
            'bc88354dfa8cad4ea2e1568efd295ad3f1fb94be80dd49ce291156692192894e'
            'SKIP'
            'e564b363427fac51a69a3faccdabad7775d0bb88cb8c91ad9c28337cd9807e34'
            'SKIP'
            '21a87a9de13d2b9a534fc40fd52c5f8d6b0b264c50bcf810afbd93b4e4466f1e'
            'SKIP'
            'f7a5013ea7b11c86df70b5199e7ad6a4bcf0a5a6b3dfb48752f2119a4afea7cc'
            'SKIP'
            '1069d81860672880a370049ee5de6a6029ef4069fc11544faa5399ca0bac5864'
            'SKIP'
            '9a4f3a18cc386bfc68a1724976ce11a93cbdffe06a6a393b32100cb2ed37ef3f'
            'SKIP'
            'a16d9d927e422bce35929ac3dfc110cedcce675541c09d66f299aa5b85102fba'
            'SKIP'
            'fc36b5e9fd248d3b8a54ac3e11222c972a14f8c5b4ba6315e2be1640b61996ba'
            'SKIP'
            '0c425a07ceb9a4fa7a2389c7c986c68bc19d008ad698dc2ddc988ae2c06193dd'
            'SKIP'
            'e05edd9e08cb2abb1d3402e6956d82092a01ee29da09efc5b8356e61c6631c5c'
            'SKIP'
            '88fcbf65ec1bfcbe186d7551e13d4ff3b7e5df9ce52cbd7ba5e107e19d154448'
            'SKIP'
            '41764632b92f5355e58a1e26f2cd57b6834969d67302117b6810e15185af1221'
            'SKIP'
            '19b46378d86b8f810ea53595a1730504b07c99d95114e48cc3dd32ec89e3aa1e'
            'SKIP'
            'e8c16ec50f007f5ef9a4eb141c998d3cb96ba78b1a1fb6477ebb363bedea8b76'
            'SKIP'
            '45895f56232aed68621dee5dc7c41010f95eb81ee382a433417b7d086af58941'
            'SKIP'
            'dfcf130a23514cc558405d28078a45c0986846a965ce19dbd5fcf0bf2d58f653'
            'SKIP'
            '9e21f5297eae487e562d1ae1bb1c9c98c9efe206630fdbabeb5ebc0e1c8468fd'
            'SKIP'
            'dbf25acc0b7735d02688bce12c955107dcdcb421b4ab93d0668eb1dfaa798976'
            'SKIP'
            '830dfbb0983055727b748ff55d782e69ef31dbe6ad854e0be6ff83043b61d8d2'
            'SKIP'
            'd6b9583a9692f66076418002a65e3c5f87be1414c7aeed4830ee5c977b55a790'
            'SKIP'
            'a1acfe69e2e68f56ae0a7f27e09e4f0bd4c03c414bb17ae274899a475ebf2843'
            'SKIP'
            '0476d444930c8854f3de5e0f1ed57238432202ef14b36029b48c0c10fc9c936c'
            'SKIP'
            '8ae5749e54e0b19b7102d2db307f1554277f1f07b9e1e804e84322a2c00af8a1'
            'SKIP'
            'fb498ae115c989abc74331de3cd1605eeb26cdcf18c1041cac57cff8d73152aa'
            'SKIP'
            'c2baa16834ff8e7e9a09dbbd7256df33a6964ff25e2a1317c27e9005cf238531'
            'SKIP'
            '7965b05ab464564bd38ad6d672eff72e978fffd0b73deec9a29637f5dd277eb0'
            'SKIP'
            'bfc49032bc5b530197661dce4b58f969ae64251f5eea9f0bbd6e6c1deb82fc8c'
            'SKIP'
            '2fbfa2a4a1895cf3d2a6fb1f60ee1c1758f2f8cd880dfe30bb42e5a8c5442d74'
            'SKIP'
            'b9f92988b6aee25d67d78199dd252eb59213c7b644e6dc5a50f89507f6e15dae'
            'SKIP'
            '31f4ecdc5b1857ee1d72b79dc95e53907bad43651d0fdfffbc25a44339f59bff'
            'SKIP'
            'f1d68b3e61b826e4fbee86a1529d9689dc2ea3b14ab8568f395b473ea6924ab4'
            'SKIP'
            'def4a0ae67ea03d5b13df1552a20f581fceec4ba0738391413614661ec541a22'
            'SKIP'
            'b8d4c75a01452c42d8a5d8f697be021fd69303e1a3d4cb0267a2eff2aed09279'
            'SKIP'
            '03bfe86aa471d3998e4e89ac2648ed999a890d68b9c0b9889da78387c404adbd'
            'SKIP'
            'ac728f3ce71e72103edee414016a631f350dc0abfda8e8918a2adf79f9987d02'
            'SKIP'
            'e043d877027fc67ec57fbc32400c80426b38f19ad94f3b847c9cca7b3735f8fd'
            'SKIP'
            '768cc6712ce331161ab7c1725a18ec818f3755b45ff8530c9826c3fa22a54bc7'
            'SKIP'
            'b84829b9791f766cb000ed68377e45d4b4b077d36d4a12923cd205d1f375ed9c'
            'SKIP'
            'dd3232ff3210b86738ea2bc1f12683186872b64ea33f33194f2700cd67d72ad4'
            'SKIP'
            '4afe95f0de39c7bbe6657faef328b60ee9f1b6ce19563eb5dde4258907025d6c'
            'SKIP'
            '6749049e1c7784f05dbe7c485b21825de92e31b1641b42f0687acbd4d00b3470'
            'SKIP'
            '9c76f64337d780f83c516c6bdaf9449f7dcd82cb0b1857c37ce48b49d7efddf1'
            'SKIP'
            '1bb69cfee4a7df6f9666497090375ac410fa0990cdf887b7753fbf167156f4c3'
            'SKIP'
            '0917708b547e07f54d5306b2b743143f9c4b1a6e7b2020faf7b1a4254ef7ba58'
            'SKIP'
            '152d3b4b1c372323e211900b5ed886e5e858706a766322866f416e1e69c031fd'
            'SKIP'
            '7a379691d82dcdc8be1b851297565e72a1fa61e7fe591dba34bd501c37e3e815'
            'SKIP'
            'b96346e4bebd31e1b1b901205313df3a83a0a46fb05c92542da93dc7388a3bfb'
            'SKIP'
            'bdbb33d2fbcd50f6b4944f4b735764ead960b3744377fd1dca3f450c6e818e64'
            'SKIP'
            'b418bf56e2abebc3d910c8f870be6afcaa1c5596b92fbce6b05cd3b78a171715'
            'SKIP'
            'c4dfd031f16c9e6d359a08a7d1d1b6f3ab3b8d9508e2ef3ae6b838f810fdb718'
            'SKIP'
            '761a75700565400a1736e7a04a0151d3627429d4b5e57e641b7cfa939d39c88b'
            'SKIP'
            '8a2130dc4d8719d46c77f02add3be77ea2e59d32c6be3ff0fcc8d0c0d2fed3fc'
            'SKIP'
            '7395ba4efbef2d3cefdb451f44187684c007ceea8c08f818f0c5ca325491bd78'
            'SKIP'
            'e8b21718c05e427430231cfcbcd3e1fe855cf44983647637f67fcce7a6cc2397'
            'SKIP'
            '6cd11c6f3f06580be2e1b8bf5cfe4cbab2eeca4574d7468ab956a53c5c32c013'
            'SKIP'
            '380251defc64f4611c4bfed067c3a03ef243f328ee42ea4e11e82fdba23fda69'
            'SKIP'
            'b6d699be2ecac9dcea456f31f9be88f55f2236476b1f8bf800aa9043c8b6c5b8'
            'SKIP'
            'a70d1335f071df3aa3542db2593975079437838c2487968d209e0dc57dc68c81'
            'SKIP'
            '89514df82d45332d4c573643148c7856fe1b17fc815b5abc8954c1d0735fdac6'
            'SKIP'
            '15a7711d3eb8c535349024524b27753dbb722de2fed27bd04f0acdade606ce3b'
            'SKIP'
            'a95062038fadcb5fe17e9b14a8f2d102ff9aa3600b4b51c0ef216311517ad5c6'
            'SKIP'
            'f5b5dc2977635e336db23a5a5172870f0f3d6d2ed746549eecfb2c97f6cd3494'
            'SKIP'
            '21c13dfb1cc8e32783a066ac7c92b2db525a3dc8c0f80f4b2dcd4968ba7619fb'
            'SKIP'
            '1952aa80ca64d90cd4b8e2877f71c072fef0b272528eeb0ff0ed891e8ce9953c'
            'SKIP'
            'b172404d8809bbfeda305d9143db1631b3753899387a7131801b988797e78121'
            'SKIP'
            '04b17aa524126cde8bf925019e81d92e1589c17db1dde0a3e5647c1917d88ebf'
            'SKIP'
            '89ea217bfaf0367a9502729840e1fd35bd7a96074eb773f161192e046c732bba'
            'SKIP'
            '3592d65ca3beca2efe336b63dd9dcffb2fc4623d98f16f9727f811b3cd5ad02e'
            'SKIP'
            '638dba21546c0dfd74f5429863d92d73dfb272caa9a5e91518d27aa9888b176a'
            'SKIP'
            '4e5cab4d66bc45c2714aeb34420471d5b7410ae8cde9b2801d9cffa7ef1dd0a0'
            'SKIP')

prepare() {
  for i in ${pkgname[@]}; do
    _pkglang=${i#*-}
    _pkglang=${_pkglang/fresh-}

    echo ${_pkglang} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_rcver}_Linux_x86_rpm_langpack_${_pkglang}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    bsdtar -x -f \
      "${srcdir}"/LibreOffice_${_rcver}_Linux_x86_rpm_helppack_${_pkglang}/RPMS/*.rpm \
      || true
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice Fresh"
  depends=('libreoffice-fresh')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")

  cd "$srcdir"/LibreOffice_${_rcver}_Linux_x86_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=libreoffice-fresh-$_locale
  source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_${_locale}.tar.gz{,.asc})

  if curl -o /dev/null -s -I -f ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_helppack_${_locale}.tar.gz; then
    source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  pkgname+=($_pkgname)
  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
